package com.yss.kettle.init;

import lombok.extern.slf4j.Slf4j;
import org.pentaho.di.core.KettleEnvironment;
import org.pentaho.di.core.util.EnvUtil;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.stereotype.Component;

/**
 * kettle初始化
 *
 * @author lsl
 */
@Component
@Slf4j
public class KettleInit implements InitializingBean {

    @Override
    public void afterPropertiesSet() throws Exception {
        // kettle环境初始化
        KettleEnvironment.init();
        // 自定义环境初始化
        EnvUtil.environmentInit();
    }
}
